<template>
    <!-- 将课程id通过插槽传给父组件 -->
    <div><slot name="icon" />{{lesson.title}}<slot :id="lesson.id" /></div>
    
</template>

<script>
    export default {
        props:["lesson"]
    }
</script>

<style lang="scss" scoped>
div{
    display:flex;
    justify-content:space-between;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
}
</style>